package ru.spb.nicetu.schoolproject.data;

import org.hibernate.annotations.Subselect;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Id;

/**
 * Created by dchernyshov on 23.04.15.
 */

@Entity
@Subselect("select * from school_schema.NumberOfPupils")
public class NumberOfPupil {
    @Id
    @Column (name = "class")
    private int clazz;
    private int number;

    public int getClazz() {
        return clazz;
    }

    public void setClazz(int clazz) {
        this.clazz = clazz;
    }

    public int getNumber() {
        return number;
    }

    public void setNumber(int number) {
        this.number = number;
    }
}
